GetMovieDisplayBoundsRgn
TheGetMovieDisplayBoundsRgn
function allows your application to determine a movie's display boundary region. The display boundary region encloses all of a movie's enabled tracks after the track matrix, track clip, movie matrix, and movie clip have been applied to all of the movie's tracks. This region is in the display coordinate system of the movie's graphics world. The movie's boundary rectangle encloses this region. For more on boundary regions and matrices for movies and tracks, see "Spatial Properties," which begins on page 2-15.
pascal RgnHandle GetMovieDisplayBoundsRgn (Movie theMovie);
theMovie
- Specifies the movie for this operation. Your application obtains this movie identifier from such functions as
NewMovie
,NewMovieFromFile
, andNewMovieFromHandle
(described on page 2-80, page 2-76, and page 2-78, respectively).DESCRIPTION
The Movie Toolbox derives the display boundary region only from enabled tracks, and only from those tracks that are used in the current display mode (that is, movie, poster, or preview). The display boundary region is valid for the current movie time.The
GetMovieDisplayBoundsRgn
function allocates the region and returns a handle to the region. Your application must dispose of this handle when you are done with it. If the movie does not have a spatial representation at the current movie time, the function returns an empty region. If the function could not satisfy your request, it sets the returned handle tonil
.ERROR CODES
Memory Manager errors
invalidMovie -2010 This movie is corrupted or invalid SEE ALSO
If you want to determine the boundary region that applies to a time segment of a movie, you can use theGetMovieSegmentDisplayBoundsRegion
function, which is described in the next section.